@import '../../../src/res/theme/xxhz.scss';

.dist-list-root, .adjust-rate {
  .at-search-bar::after {
    border-width: 0;
  }

  .top-info {
    box-shadow: 4px 2px 5px rgba(171, 171, 171, 0.15);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    background: #fff;
    margin-bottom: 20px;

    .top-info-list {
      height: 88px;
      width: calc(50% - 1px);
      text-align: center;
      line-height: 44px;
      position: relative;
      margin: 20px auto;

      .title {
        font-size: 24px;
        color: #5a5a5a;
        display: flex;
        align-items: center;
        justify-content: center;

        .aticon {
          padding: 4px 6px;
        }
      }

      .num {
        font-size: 30px;
        color: $mainColor;
        font-weight: bold;
      }

      .tips {
        width: 410px;
        padding: 0 10px;
        z-index: 9999;
        font-size: 24px;
        position: absolute;
        left: 0;
        line-height: 60px;
        border-radius: 8px;
        border: 1px solid #ebeef5;
        box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
        word-break: break-all;
        background: #fff;
        display: none;

        &::after {
          position: absolute;
          left: 0;
          content: '';
          width: 0px;
          height: 0px;
          border: 12px solid #fff;
          border-bottom-color: transparent;
          border-left-color: transparent;
          border-right-color: transparent;
        }
      }
    }

    .top-info-list:nth-child(1) {
      .tips {
        left: 152px;
        top: -70px;

        &::after {
          left: 85px;
          top: 58px;
        }
      }
    }

    .top-info-list:nth-child(2) {
      border-left: 1px solid #e8e8e8;

      .tips {
        left: -80px;
        top: -70px;

        &::after {
          left: 320px;
          top: 58px;
        }
      }
    }

    .top-info-list:nth-child(3) {
      border-right: 1px solid #e8e8e8;

      .tips {
        left: 152px;
        top: -70px;

        &::after {
          left: 85px;
          top: 58px;
        }
      }
    }

    .top-info-list:nth-child(4) {
      .tips {
        left: -80px;
        top: -70px;

        &::after {
          left: 320px;
          top: 58px;
        }
      }
    }

    .twos {
      display: block !important;
      animation: twos 2.2s;
      animation-iteration-count: 1;
      animation-fill-mode: forwards;
    }
  }

  .header2 {
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 30px;
    align-items: center;
    color: $color-font-secondry;
    font-size: 30px;

    .title {

    }

    .all {
      padding: 10px 40px;
      border-radius: 10px;
      border: solid 1Px #d8d8d8;
      font-size: 24px;
    }
  }

  .select-all-box {
    width: 100%;
    padding: 0 20px 30px;
    margin-top: -10px;

    .select-all {
      padding: 8px 20px;
      font-size: 22px;
      border-radius: 6px;
      background-color: $mainColor;
      color: white;
    }
  }

  .header {
    background: #fff;

    .header-tabs {
      height: 100px;
      border-bottom: 2px solid #f8f8f8;
      display: flex;
      justify-content: center;

      .tabs-list {
        width: 33.33%;
        font-size: 26px;
        color: #191919;
        line-height: 98px;
        text-align: center;

        &::after {
          content: '';
          display: block;
          width: 50px;
          margin: 0 auto;
          height: 2px;
          background-color: #fff;
        }
      }

      .on {
        color: $mainColor;

        &::after {
          background-color: $mainColor;
        }
      }
    }

    .sortField {
      height: 110px;
      display: flex;
      justify-content: center;

      .sortField-list {
        width: 25%;
        text-align: center;
        font-size: 26px;
        color: #191919;
        line-height: 110px;

        .taro-img {
          overflow: initial;
          vertical-align: unset !important;
          margin-left: 8px;
        }

        .sequence {
          width: 11px;
          height: 16px;
          vertical-align: middle;
        }

        .h5-sequence {
          width: 11px;
          height: 16px;
          vertical-align: middle;

          img {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
          }
        }
      }

      .on {
        color: $mainColor;

        .asc {
          transform: rotateX(180deg);
        }
      }
    }
  }

  .select-all-box {
    width: 100%;
    padding: 0 20px 30px;
    margin-top: -10px;

    .select-all {
      padding: 8px 20px;
      font-size: 22px;
      border-radius: 6px;
      background-color: $mainColor;
      color: white;
    }
  }

  .list-item {
    width: 710px;
    height: 272px;
    border-radius: 15px;
    margin: 20px auto 20px;
    padding: 0 48px;
    box-sizing: border-box;
    background-color: white;

    &.heightAuto {
      height: auto;
    }

    .list-item-top {
      padding: 32px 0;
      display: flex;
      position: relative;
      border-bottom: 1px solid #d7d7d7;

      image, .taro-img {
        width: 102px;
        height: 102px;
        border-radius: 50%;
      }

      .name {
        .disabled-img {
          position: absolute;
          right: -20px;
          top: 20px;
        }

        padding-left: 32px;
        line-height: 51px;
        font-size: 26px;

        text:first-child, .taro-text:first-child {
          display: block;
          color: #191919;
        }

        text:last-child, .taro-text:last-child {
          color: #909090;
        }
      }
    }

    .list-item-bottom {
      height: 120px;
      display: flex;
      justify-content: space-between;
      line-height: 120px;
      font-size: 24px;
      color: #191919;

      text, .taro-text {
        color: $mainColor;
      }
    }

    .head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 32px;
      padding: 5px 0 20px;

      .name-box {
        white-space: nowrap;
        flex-shrink: 0;
      }

      .phone {
        // margin-left: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .order-number {
        color: #58aae6;
        flex-shrink: 0;
      }
    }

    .stage {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      border: solid 1Px #efefef;
      font-size: 28px;
      color: #666;
      line-height: 2.2;
      text-align: center;

      .stage-item {
        width: 50%;
        box-sizing: border-box;

        &:last-child {
          border-left: solid 1Px #efefef;
        }
      }
    }

    .statistics {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      border: solid 1Px #efefef;
      border-top: none;
      font-size: 28px;
      color: #666;
      line-height: 2.2;
      text-align: center;

      .sta-box {
        width: 25%;
        box-sizing: border-box;
        border-right: solid 1Px #efefef;

        &:last-child {
          border-right: none;
        }

        .label {
          font-size: 22px;
        }

        .number {
          color: #222;
          font-weight: 400;
          line-height: 1;
          padding: 20px 0 0px;
        }
      }
    }

    .all-title {
      box-sizing: border-box;
      border: solid 1Px #efefef;
      font-size: 28px;
      color: #666;
      line-height: 2.2;
      text-align: center;
    }

    .all-content {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      border: solid 1Px #efefef;
      border-top: none;
      font-size: 28px;
      color: #666;
      line-height: 2.2;
      text-align: center;
      white-space: nowrap;

      .all-item {
        width: 20%;
        height: 100%;
        box-sizing: border-box;
        border-right: solid 1Px #efefef;

        &:last-child {
          border-right: none;
        }

        .label {
          font-size: 20px;
        }

        .number {
          color: #222;
          font-weight: 400;
          line-height: 1;
          padding: 20px 0 0px;
        }
      }
    }

    .total {
      margin-top: 20px;
    }
  }

  .no-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80Px;
    height: 80vh;

    .title {
      padding-bottom: 30px;
      font-size: 40px;
      font-weight: 400;
    }

    .tips {
      font-size: 28px;
      color: #999999;
      display: flex;

      .link {
        color: #586C94;
      }
    }
  }


}

.adjust-rate {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 30px;
  text-align: center;
  z-index: 99999;
  background-color: white;
  box-sizing: border-box;
  padding-bottom: constant(safe-area-inset-bottom);
  border-top: 1Px solid #efefef;
  box-shadow: 0px -2Px 6Px rgba(0, 0, 0, 0.05);

  .btn {
    border-radius: 10px;
    background-color: $mainColor;
    color: white;
    padding: 20px 0;
    line-height: 40px;
    font-size: 30px;
  }

}

@keyframes twos {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes twos {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
